package com.modelscope.ai.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "用户登录类")
public class UserLoginDto {

    @NotBlank(message = "用户登录名称不能为空")
    @Schema(description = "用户登录名称")
    private String username;

    @NotBlank(message = "用户密码不能为空")
    @Schema(description = "用户登录密码")
    private String password;
}
